-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hasstash #46
base: master
Are you sure you want to change the base?
Hasstash #46
Conversation
@@ -21,7 +21,7 @@ find_git_branch() { | |||
|
|||
find_git_stash() { | |||
local stash | |||
if stash=$(git stash list 2>/dev/null | grep $branch 2> /dev/null); then | |||
if stash=$(git stash list 2>/dev/null | grep "WIP on $branch" 2> /dev/null); then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't include stashes with messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I did not consider that. I'll correct that shortly.
@AaronDMarasco-VSI avoiding the pipe is certainly desirable. I'll admit I'm not familiar with heh, I started out thinking, "Oh man this super simple feature would be helpful!" and threw it together in the midst of doing actual work... I should know better. I'll keep hacking. Thanks for the suggestions / code reviews. |
And yeah, I know how it is for hacking away and then realizing there's prolly a better way. |
The first thing I've run into is the matter of return codes. If I do On the other hand, doing I may not be able to avoid the pipe, but I'll keep wrestling with it. |
|
Adds the option to indicate if there are any stashes associated with the current branch.